package com.hjq.demo.yuliao.activity

import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import com.hjq.demo.R
import com.hjq.demo.app.vb.AppVbActivity
import com.hjq.demo.databinding.ActivityWalletBinding
import com.hjq.demo.yuliao.MainActivity
import com.hjq.demo.yuliao.fragment.HomeMainFragment

class WalletActivity : AppVbActivity<ActivityWalletBinding>() {

    companion object {

        private const val INTENT_KEY_INFO: String = "info"

        fun start(context: Context, info: String) {
            val intent = Intent(context, WalletActivity::class.java)
            intent.putExtra(INTENT_KEY_INFO, info)
            context.startActivity(intent)
        }
    }

    override fun initView() {
        setOnClickListener(binding.sbSwitch, binding.sbWithdraw)
    }

    override fun initData() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        if (view == binding.sbSwitch) {
            DiamondActivity.start(this, "")
            return
        }
        if (view == binding.sbWithdraw) {
            WithdrawActivity.start(this, "")
            return
        }
    }
}